import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

import { LayoutSimpleComponent } from '@layout/simple/simple.component';

const routes: Routes = [
  {
    path: 'dept',
    component: LayoutSimpleComponent,
    loadChildren: () => import('./dept/dept.module').then(m => m.DeptModule)
  },
  {
    path: 'area',
    component: LayoutSimpleComponent,
    loadChildren: () => import('./area/area.module').then(m => m.AreaModule)
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class SystemRoutingModule {}
